package com.yami.shop.cp.comment.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 协同采购提报人购物车
 * </p>
 *
 * @author xch
 * @since 2021-06-29
 */
@Data
@TableName("tz_collaborative_purchase_basket")
public class CollaborativePurchaseBasket implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 协同采购购物车id
     */
    @TableId
    private Long collaborativePurchaseBasketId;

    /**
     * 店铺ID
     */
    private Long shopId;

    /**
     * 产品ID
     */
    private Long prodId;

    /**
     * SkuID
     */
    private Long skuId;

    /**
     * 提报人手机号
     */
    private String mobile;

    /**
     * 购物车产品个数
     */
    private Integer basketCount;

    /**
     * 购物时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime basketDate;

    /**
     * 满减活动ID
     */
    private Long discountId;

    /**
     * 分销推广人卡号
     */
    private String distributionCardNo;

    /**
     * 提报人id
     */
    private String submitPersonId;

    /**
     * 协同采购单id
     */
    private String collaborativePurchaseId;

    /**
     * 状态 0 购物车中 1 已提报
     */
    private String status;


}
